﻿<%@ Page Title="注册用户" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegisterUser.aspx.cs" Inherits="OUSMS.RegisterUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="topchannel">
        用户注册申请		 
    </div>
    <table class="table1" border="0" cellspacing="1" cellpadding="2">
        <tr class="row2" align="left" style="color:red">
            <td colspan="6" align="left"><b>温馨提示:</b>请填写您的个人信息提交注册申请，注册信息需要等待管理员审核通过后，方可登录系统。审核通过后我们会发送邮件到您的注册邮箱中，请您注意查收。</td>
        </tr>
        <tr class="row1">
            <td style="width: 20%"><b>登录名：</b></td>
            <td style="width: 25%">
                <asp:TextBox runat="server" ID="loginNameTxtBox" Width="95%" Height="20px"></asp:TextBox><asp:RequiredFieldValidator ID="loginNameRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入登录名" Text="" ControlToValidate="loginNameTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td style="width: 5%"><span style="color: Red">*</span></td>
            <td style="width: 20%"><b>密码：</b></td>
            <td>
                <asp:TextBox runat="server" ID="passwordTxtBox" Width="95%" Height="20px" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="passwordRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入登录密码" Text="" ControlToValidate="passwordTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td style="width: 5%"><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td><b>姓名：</b></td>
            <td>
                <asp:TextBox runat="server" ID="nameTxtBox" Width="95%" Height="20px"></asp:TextBox><asp:RequiredFieldValidator ID="nameRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入姓名" Text="" ControlToValidate="nameTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>性别:</b></td>
            <td>
                <asp:DropDownList ID="genderDDL" runat="server" Width="95%">
                    <asp:ListItem Text="男" Value="男">男</asp:ListItem>
                    <asp:ListItem Text="女" Value="女">女</asp:ListItem>
                </asp:DropDownList></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row1">
            <td><b>邮箱：</b></td>
            <td>
                <asp:TextBox runat="server" ID="emailTxtBox" Width="95%" Height="20px"></asp:TextBox><asp:RequiredFieldValidator ID="emailRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入邮箱" Text="" ControlToValidate="emailTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>电话:</b></td>
            <td>
                <asp:TextBox ID="phoneTxtBox" runat="server" Width="95%" TextMode="Phone"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                    runat="server" ErrorMessage="必须输入电话" Text="" ControlToValidate="phoneTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td><b>一级单位：</b></td>
            <td>
                <asp:DropDownList ID="departmentDDL" runat="server"
                    DataTextField="Name" DataValueField="ID" Width="95%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.Departments"
                    AutoPostBack="true"
                    OnSelectedIndexChanged="departmentDDL_SelectedIndexChanged">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                    runat="server" ErrorMessage="必须选择一级单位" Text="" ControlToValidate="departmentDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
            <td><span style="color: Red">*</span></td>
            <td><b>二级单位：</b></td>
            <td>
                <asp:DropDownList ID="SecondDepartmentDDL" runat="server"
                    DataTextField="Name" DataValueField="ID" Width="95%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.SecondDepartments">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                    runat="server" ErrorMessage="必须选择二级单位" Text="" ControlToValidate="SecondDepartmentDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row1">
            <td><b>职务：</b></td>
            <td>
                <asp:TextBox ID="positionTxtBox" runat="server" Width="95%"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                    runat="server" ErrorMessage="必须输入职务" Text="" ControlToValidate="positionTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>职称:</b></td>
            <td>
                <asp:DropDownList ID="titleDDL" runat="server" DataTextField="Name" DataValueField="ID" Width="95%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.Titles"
                    SelectMethod="GetAllTitles">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator6"
                    runat="server" ErrorMessage="必须选择职称" Text="" ControlToValidate="titleDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td colspan="6"><b>个人简介：</b></td>
        </tr>
        <tr class="row1">
            <td colspan="5">
                <asp:TextBox ID="introductionTxtBox" runat="server" Rows="5" Width="100%" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator7"
                    runat="server" ErrorMessage="必须输入个人简介" Text="" ControlToValidate="introductionTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td colspan="6"><b>研究领域：</b></td>
        </tr>
        <tr class="row1">
            <td colspan="6" align="left">
                <asp:CheckBoxList ID="studyAreaChkList" runat="server"
                    DataTextField="Name" DataValueField="ID" RepeatLayout="Flow"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.StudyAreas"
                    SelectMethod="GetALLStuyAreas" RepeatDirection="Vertical">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr class="row1">
            <td colspan="6" align="left">
                <asp:ValidationSummary ID="ValidationSummary" runat="server" BorderStyle="Solid" ForeColor="red"
                    BorderColor="Red" DisplayMode="BulletList" HeaderText="注册信息有误，请对照提示修改以下信息再重新提交:"
                    BorderWidth="1px" ShowSummary="true" CssClass="validationsummary" />
                <asp:Label ID="errorMsgLbl" runat="server" Visible="false" ForeColor="Red" BorderColor="Red"
                    BorderWidth="1px" BorderStyle="Solid" Width="100%" CssClass="validationsummary"></asp:Label></td>
        </tr>
        <tr align="center" class="row2">
            <td colspan="6">
                <asp:Button ID="okButton" runat="server" Text="立即注册" Width="120px" Height="25px"
                    BackColor="Gray" OnClick="okButton_Click" /><a href="Default.aspx">返回登陆页面</a></td>
        </tr>
    </table>
</asp:Content>
